<?php
    ////// CUSTOMS PATH

    if(!defined("CONFIG_PATH"))
    {
        define("CONFIG_PATH", realpath(dirname(__FILE__) . '/../../config') . '/' );
    }

    if(!defined("LIBS_PATH"))
    {
        define("LIBS_PATH", realpath(dirname(__FILE__) . '/../../libs') . '/' );
    }

    // Load the Autoload class
    require_once LIBS_PATH . 'kassiop/core/Autoload.php';
    Autoload::register() ;
    $autoload = Autoload::getInstance() ;

    //This file is intentionally left blank so that you can add your own global settings
    //and includes which you may need inside your services. This is generally considered bad
    //practice, but it may be the only reasonable choice if you want to integrate with
    //frameworks that expect to be included as globals, for example TextPattern or WordPress

    //Set start time before loading framework
    list($usec, $sec) = explode(" ", microtime());
    $amfphp['startTime'] = ((float)$usec + (float)$sec);

    global $servicesPath, $voPath;

    $servicesPath = $autoload->getBaseDir() . "application/services/";
    $voPath       = $autoload->getBaseDir() . "application/vo/";

    //As an example of what you might want to do here, consider:

    /*
    if(!PRODUCTION_SERVER)
    {
        define("DB_HOST", "localhost");
        define("DB_USER", "root");
        define("DB_PASS", "");
        define("DB_NAME", "amfphp");
    }
    */

?>